/*DxfBlocks.java
 *
 * Created on 6 de Dezembro de 2007, 11:00
 * 
 * Modified 08/10/2011, 02:21 by Adriano
 * -> Included the attribute @Override to inherited methods
 * -> Created getBlockSet method
 */

package importadorDXF;

/**
 * @author rafaelbuck
 * @author Adriano Ferreira
 */
public class DxfBlocks extends DxfSection
{
    @Override
    public void read(DxfGroups grp, DxfReporter reporter) throws DxfException
    {
        grp.readEntities(getBlockSet());
    }

    public DxfEntity getBlock(String name)
    {
        return getBlockSet().getBlock(name);
    }
    
    /**
     * @return the blockSet
     */
    public DxfEntitySet getBlockSet() 
    {
        return blockSet;
    }

    /** Creates a new instance of DxfBlocks */
    public DxfBlocks()
    {
        blockSet = new DxfEntitySet();
    }

    private DxfEntitySet blockSet;    
}